package cn.base.demo2;

import java.util.Scanner;

public class Code08 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的工龄：");
        int year = sc.nextInt();
        System.out.println("请输入您的基本工资");
        int oldSalary = sc.nextInt();
        int salary;//涨后工资
        switch (year) {
            case 0:
                salary = oldSalary + 200;
                System.out.println("您目前工作了" + year + "年，基本工资为" + oldSalary + "元，应涨工资200元，涨后工资" + salary + "元");
                break;
            case 1:
            case 2:
                salary = oldSalary + 500;
                System.out.println("您目前工作了" + year + "年，基本工资为" + oldSalary + "元，应涨工资500元，涨后工资" + salary + "元");
                break;
            case 3:
            case 4:
                salary = oldSalary + 1000;
                System.out.println("您目前工作了" + year + "年，基本工资为" + oldSalary + "元，应涨工资1000元，涨后工资" + salary + "元");
                break;
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
                salary = oldSalary + 2500;
                System.out.println("您目前工作了" + year + "年，基本工资为" + oldSalary + "元，应涨工资2500元，涨后工资" + salary + "元");
                break;
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
                salary = oldSalary + 5000;
                System.out.println("您目前工作了" + year + "年，基本工资为" + oldSalary + "元，应涨工资5000元，涨后工资" + salary + "元");
                break;
        }

    }
}
